/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.sokoban.elements.model;

import br.com.sokoban.elements.interfaces.MapCharacters;
import java.awt.Image;
import java.net.URL;
import javax.swing.ImageIcon;

/**
 *
 * @author kevinstortz
 */
public class Wall implements MapCharacters {
    
    public static final char  CARACTER = '#';
    
    private Image image;
    private int x;
    private int y;
    
    public Wall(int x, int y){
        this.loadImage();
        this.x = x;
        this.y = y;
    }
    
    private void loadImage(){
        URL location = this.getClass().getResource("Wall.gif");
        ImageIcon imageIcon = new ImageIcon(location);
        this.image = imageIcon.getImage();
    }
    
    public Image getImage(){
        if(this.image == null){
            this.loadImage();
        }
        return this.image;
    }
    
    public int getY() {
        return this.y;
    }

    public int getX() {
        return this.x;
    }
}

